Skip to main content

Swagger\Client\MinerApi

All URIs are relative to //api.estuary.tech/

MethodHTTP requestDescription
minerClaimMinerGetGET /miner/claim/{miner}Get Claim Miner Message
minerClaimPostPOST /miner/claimClaim Miner
minerSetInfoMinerPutPUT /miner/set-info/{miner}Set Miner Info
minerSuspendMinerPostPOST /miner/suspend/{miner}Suspend Miner
minerUnsuspendMinerPutPUT /miner/unsuspend/{miner}Unuspend Miner
publicMinersDealsMinerGetGET /public/miners/deals/{miner}Get all miners deals
publicMinersStatsMinerGetGET /public/miners/stats/{miner}Get miner stats

minerClaimMinerGet

\Swagger\Client\Model\ApiClaimMsgResponse minerClaimMinerGet($miner)

Get Claim Miner Message

This endpoint lets a user get the message in order to claim a miner

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Swagger\Client\Api\MinerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$miner = "miner_example"; // string | Miner claim message

try {
$result = $apiInstance->minerClaimMinerGet($miner);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MinerApi->minerClaimMinerGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
minerstringMiner claim message

Return type

\Swagger\Client\Model\ApiClaimMsgResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

minerClaimPost

\Swagger\Client\Model\ApiClaimResponse minerClaimPost($body)

Claim Miner

This endpoint lets a user claim a miner

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Swagger\Client\Api\MinerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \Swagger\Client\Model\MinerClaimMinerBody(); // \Swagger\Client\Model\MinerClaimMinerBody | Claim Miner Body

try {
$result = $apiInstance->minerClaimPost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MinerApi->minerClaimPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
body\Swagger\Client\Model\MinerClaimMinerBodyClaim Miner Body

Return type

\Swagger\Client\Model\ApiClaimResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: /
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

minerSetInfoMinerPut

\Swagger\Client\Model\ApiEmptyResp minerSetInfoMinerPut($body, $miner)

Set Miner Info

This endpoint lets a user set miner info.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Swagger\Client\Api\MinerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \Swagger\Client\Model\MinerMinerSetInfoParams(); // \Swagger\Client\Model\MinerMinerSetInfoParams | Miner set info params
$miner = "miner_example"; // string | Miner to set info for

try {
$result = $apiInstance->minerSetInfoMinerPut($body, $miner);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MinerApi->minerSetInfoMinerPut: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
body\Swagger\Client\Model\MinerMinerSetInfoParamsMiner set info params
minerstringMiner to set info for

Return type

\Swagger\Client\Model\ApiEmptyResp

Authorization

bearerAuth

HTTP request headers

  • Content-Type: /
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

minerSuspendMinerPost

\Swagger\Client\Model\ApiEmptyResp minerSuspendMinerPost($body, $miner)

Suspend Miner

This endpoint lets a user suspend a miner.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Swagger\Client\Api\MinerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \Swagger\Client\Model\MinerSuspendMinerBody(); // \Swagger\Client\Model\MinerSuspendMinerBody | Suspend Miner Body
$miner = "miner_example"; // string | Miner to suspend

try {
$result = $apiInstance->minerSuspendMinerPost($body, $miner);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MinerApi->minerSuspendMinerPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
body\Swagger\Client\Model\MinerSuspendMinerBodySuspend Miner Body
minerstringMiner to suspend

Return type

\Swagger\Client\Model\ApiEmptyResp

Authorization

bearerAuth

HTTP request headers

  • Content-Type: /
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

minerUnsuspendMinerPut

\Swagger\Client\Model\ApiEmptyResp minerUnsuspendMinerPut($miner)

Unuspend Miner

This endpoint lets a user unsuspend a miner.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Swagger\Client\Api\MinerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$miner = "miner_example"; // string | Miner to unsuspend

try {
$result = $apiInstance->minerUnsuspendMinerPut($miner);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MinerApi->minerUnsuspendMinerPut: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
minerstringMiner to unsuspend

Return type

\Swagger\Client\Model\ApiEmptyResp

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

publicMinersDealsMinerGet

string publicMinersDealsMinerGet($miner, $ignore_failed)

Get all miners deals

This endpoint returns all miners deals

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Swagger\Client\Api\MinerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$miner = "miner_example"; // string | Filter by miner
$ignore_failed = "ignore_failed_example"; // string | Ignore Failed

try {
$result = $apiInstance->publicMinersDealsMinerGet($miner, $ignore_failed);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MinerApi->publicMinersDealsMinerGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
minerstringFilter by miner
ignore_failedstringIgnore Failed[optional]

Return type

string

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

publicMinersStatsMinerGet

string publicMinersStatsMinerGet($miner)

Get miner stats

This endpoint returns miner stats

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Swagger\Client\Api\MinerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$miner = "miner_example"; // string | Filter by miner

try {
$result = $apiInstance->publicMinersStatsMinerGet($miner);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MinerApi->publicMinersStatsMinerGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
minerstringFilter by miner

Return type

string

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]